import request from '@/utils/request'

// 查询每日日报汇总列表
export function listDaily(query) {
  return request({
    url: '/system/daily/list',
    method: 'get',
    params: query
  })
}

// 查询每日日报汇总详细
export function getDaily(dailyId) {
  return request({
    url: '/system/daily/' + dailyId,
    method: 'get'
  })
}

// 新增每日日报汇总
export function addDaily(data) {
  return request({
    url: '/system/daily',
    method: 'post',
    data: data
  })
}

// 修改每日日报汇总
export function updateDaily(data) {
  return request({
    url: '/system/daily',
    method: 'put',
    data: data
  })
}

// 删除每日日报汇总
export function delDaily(dailyId) {
  return request({
    url: '/system/daily/' + dailyId,
    method: 'delete'
  })
}
